/************************************************************
 *  * CWSwift CONFIDENTIAL
 * __________________
 * Copyright (C) 2013-2014 CWSwift Technologies. All rights reserved.
 *
 * NOTICE: All information contained herein is, and remains
 * the property of CWSwift Technologies.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from CWSwift Technologies.
 * knight lu 349919133
 */

//==保存未登录用户数据==

//架号后6位
#define KlittleTravelNumber @"littleTravelNumber"
//车牌号
#define KcarNumber @"carNumber"
//车辆类型
#define KcarTypeNumber @"carTypeNumber"
//验证码
#define KverifyCode @"verifyCode"
//时间戳
#define KtimeSp @"timeSp"


//==保存登录用户数据==
#define KuserName @"userName"
#define KuserId @"userId"
#define Kpassword @"password"
#define KautoLogin @"autoLogin"
#define KisLogin @"isLogin"
#define KUID @"uid"
#define KHeadImg @"headImage"

#define KisBindJXT @"isBindJXT"


#define PushFromQuickCode @"pushPageFromQuickCode"  //扫描二维码结果是网页跳转到TOWebviewController的判断
#define BackFromLogin @"backFromLogin"
#import <Foundation/Foundation.h>

@interface Tools : NSObject

+ (BOOL)validateMobile:(NSString *)mobileNum;

+ (void)removeFile:(NSString *)fileName;

+ (BOOL)checkFileExist:(NSString *)photoImagePath;

+ (NSString *)getImageFilePath:(NSString*)photoImagePath;

+ (NSString *) getValueForKey:(NSString *)key;
+ (void)setValue:(id)value forKey:(NSString *)key;
+ (void) removeForKey:(NSString *)key;
//返回登录状态
+ (BOOL)isLogin;

//注销，清除数据
+ (void)removeUserData;

//生成CWclientID
+ (NSString *)getCWclientID;


//获取一个随机整数，范围在[from,to），包括from，不包括to
+ (NSString *)getRandomNumber: (int)from to:(int)to;

//获得系统时间
+ (NSString *)getCurrentSystemTime;

//时间戳转换为本地时间
+ (NSString *)timeSpToTime:(NSString *)timeSp;

+ (NSString *)getDateFromStr:(NSString *)timeSp rang:(NSRange)range unit:(NSString *) unit;
@end


@interface NSString(DES)
+ (NSString *)encryptUseDES:(NSString *)str;

+ (NSString *)encodeToPercentEscapeString:(NSString *)input;
@end
/*!
 @header ************************
 @abstract 为 UILabel 添加一条删除线
 @author  knight lu
 @version ***********************
 */
@interface UILabelStrikeThrough : UILabel
{
    BOOL isWithStrikeThrough;
}
@property (nonatomic, assign) BOOL isWithStrikeThrough;

@end

@interface UIAlertView(alertView)
+ (void) quickAlert:(NSString *)title withMessage:(NSString *)message;
@end
